
#include "defineSelection.h"

defineSelection::defineSelection()
{

}

void defineSelection::setName(QString name)
{
    _name = name;
}

void defineSelection::setIndex(QSet<int> idxList)
{
    _idxList = idxList;
}

void defineSelection::insertIndex(const int &idx)
{
    _idxList.insert(idx);
}

void defineSelection::deleteIndex(const int &idx)
{
    auto it = _idxList.find(idx);
    if (it != _idxList.end())
        _idxList.erase(static_cast<QSet<int>::const_iterator>(it));
}
